# RT-Thread building script for component

from building import *
import rtconfig
cwd = GetCurrentDir()

if rtconfig.CROSS_TOOL == 'gcc':
    src = Glob('*.c') + Glob('*.cpp') +   Glob('*.gnu.s')
elif rtconfig.CROSS_TOOL == 'keil':
    src = Glob('*.c') + Glob('*.cpp') +   Glob('*.s')
elif rtconfig.CROSS_TOOL == 'iar':
    src = Glob('*.c') + Glob('*.cpp') +   Glob('*.s')



CPPPATH = [cwd, str(Dir('#'))]

group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
